/*
 * Author: Ruben Unteregger
 * 
 */

package com.example.iorder.config;

import java.util.HashMap;


public class Config 
{
	public static final String IORDER_SERVER = "iorder.buglist.io";
	public static final String URL_RESERVATIONS = "/reservations/";
	public static final String URL_USERS = "/users/";
	public static final String URL_RESTAURANTS = "/restaurants/";
	public static final String URL_MENUS = "/menus/";
	public static final String URL_MENU_ITEMS = "/menuitems/";
	public static final String URL_ORDERED_MENU_ITEMS = "/orderedmenuitems/";
	public static final String URL_CREATE_RESERVATION = "/tablereservations/";
	
	public static HashMap<String, Integer> RESERVATION_STATUS2INT = new HashMap<String, Integer>() {
		    { 
		      put("RESERVATION_REQUESTED",	0); 
		      put("RESERVATION_ACCEPTED",	1); 
		      put("RESERVATION_REFUSED",	2); 
		      put("CANCELLATION_REQUESTED",	3); 
		      put("CANCELLATION_ACCEPTED",	4); 
		      put("RESERVATION_DELETED",	5); 
		    }
		  };

	public static String RESERVATION_INT2STATUS[] = new String[] 
													{	"Reservation pending",		// 0
														"Reservation accepted", 	// 1
														"Reservation refused", 		// 2
														"Cancellation requested", 	// 3
														"Reservation cancelled",	// 4
														"Reservation deleted"		// 5
													};
}
